package com.xcity.pomelo.response;

import com.xcity.db.entity.Player;
import com.xcity.game.player.PlayerUtils;

import naga.x.net.impl.pomelo.PomeloMessage;
import naga.x.net.impl.pomelo.protocol.Message;

@PomeloMessage(type = Message.Type.RESPONSE)
public class BuyStrengthResponse extends Response {
	
	private int boughtStrNum; // 今天已购买体力次数
	private int maxBuyStrNum; // 每天最多可购买体力次数
	
	public BuyStrengthResponse(int serial, Player player) {
		super(serial);
		this.boughtStrNum = PlayerUtils.getBoughtStrengthTimes(player);
		this.maxBuyStrNum = PlayerUtils.getBuyStrengthMaxTimes(player);
	}

	public int getBoughtStrNum() {
		return boughtStrNum;
	}

	public void setBoughtStrNum(int boughtStrNum) {
		this.boughtStrNum = boughtStrNum;
	}

	public int getMaxBuyStrNum() {
		return maxBuyStrNum;
	}

	public void setMaxBuyStrNum(int maxBuyStrNum) {
		this.maxBuyStrNum = maxBuyStrNum;
	}

}
